//
//  RecommendTableViewCell.m
//  觅影
//
//  Created by lanou on 16/4/14.
//  Copyright © 2016年  陶虹. All rights reserved.
//

#import "RecommendTableViewCell.h"
@interface RecommendTableViewCell ()

@property (weak, nonatomic) IBOutlet UIImageView *picImageView;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *tipLabel;
@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;

@end


@implementation RecommendTableViewCell


- (void)setModel:(RecommmendModel *)model
{
    _model = model;
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.poster]];
    self.titleLabel.text = model.title;
    self.tipLabel.backgroundColor = [UIColor colorWithRed:152/255.0 green:167/255.0 blue:232/255.0 alpha:1];
    self.tipLabel.text = model.name;
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.header]];
    
    
}














- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
